from config import AI_KEY_XING_HUO, AI_SECRET_XING_HUO
from ai.common import get_result_by_open_ai
from ai.consts import PLATFORM_XING_HUO

# 定义一个函数，用于获取 hunyuan 的结果
def get_xinghuo_result(data, model_name):
    kimi_ai_data = {
        "api_key": f"{AI_KEY_XING_HUO}:{AI_SECRET_XING_HUO}",
        "model": model_name,
        "url": "https://spark-api-open.xf-yun.com/v2",
        "platform": PLATFORM_XING_HUO
    }
    return get_result_by_open_ai(data, kimi_ai_data)

